package com.iot.service;

import com.iot.mapper.TappMapper;
import com.iot.pojo.MTapp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CommonServiceImpl implements CommonService {
    @Autowired
    private TappMapper tappMapper;

    @Override
    public MTapp getApp(int appId) {
        if (appId > 0) {
            MTapp mTapp = tappMapper.single(appId);
            return mTapp;
        }
        return new MTapp();
    }
}
